package databaseVersionControl.test;

import org.junit.Before;

import databaseVersionControl.domain.dialect.Dialect;
import databaseVersionControl.infra.connection.DataBaseProxy;

public abstract class DialectTestHarness {
	
	protected Dialect dialect;

	@Before
	public void setup() {
		initializeDialect();
		DataBaseProxy.setDialect(dialect);
	}
	
	public Dialect initializeDialect() {
		if ( dialect == null ) dialect = getDialect();
		return dialect;
	}
	
	public abstract void sequenceTest();
	
	public abstract Dialect getDialect();
	
}